/*
 * Copyright (c) 2011 Nat Pryce, Timo Meinen.
 *
 * This file is part of Team Piazza.
 *
 * Team Piazza is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation; either version 3 of the License, or
 * (at your option) any later version.
 *
 * Team Piazza is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
 */
body {
    font-family: tahoma, arial, sans-serif;
    padding: 16px;
    background-position: top right;
    background-repeat: no-repeat;
}

body.Success {
    background-color: #42aa6a;
    background-image: url("green-tick.png");
}

body.Failure {
    background-color: #ff3b30;
    background-image: url("red-cross.png");
}

body.Neutral {
    background-color: #a9aeb6;
}

h1 {
    margin: 0;
    margin-bottom: 16px;
    font-weight: bold;
    font-size: 32px;
}

h2 {
    margin: 0;
    margin-bottom: 32px;
    font-weight: normal;
    font-size: 24px;
}

h3 {
    margin: 0;
    font-weight: normal;
    font-size: 20px;
}

.DefaultBranches {
    border: 1px solid #444444;
    background-color: #FFFFFF;
    padding: 8px;
}

.DefaultBranches.Building {
    background-color: #FFFF00;
}

.Builds {
    margin-bottom: 8px;
}

.Build {
    padding: 8px;
    margin: 8px;
    border: solid 3px;
    -moz-border-radius: 10px;
    -webkit-border-radius: 10px;
}

.Build h3 {
    display: inline;
}

.Build.Failure {
    border-color: #ff0000;
    background-color: #E23B30;
}

.Build.Success {
    border-color: #42AA52;
    background-color: #A5DDAD;
}

.Portrait {
    display: inline-block;
    margin: 8px;
}

.Portrait img {
    display: block;
    border: 1px solid #444444;
    margin-left: auto;
    margin-right: auto;
}

.Portrait .Name {
    display: block;
    padding: 0;
    margin: 4px auto 0;
    border: 0;
    font-size: 12px;
    font-weight: normal;
    text-align: center;
}

.NoChanges {
    margin: 8px;
}

.Changes ul {
    list-style: none;
    padding: 0;
    margin: 16px 8px 0;
}

.Changes li {
    border-top: solid 1px #444444;
    padding-top: 8px;
    padding-bottom: 8px;
    white-space: pre-line;
}

.BuildType .ProgressBar {
    margin-top: 8px;
    margin-left: 8px;
    margin-right: 8px;
    margin-bottom: 16px;
}

.Project .Build .ProgressBar {
    margin-top: 8px;
    margin-left: 16px;
    margin-right: 16px;
}

.ProgressBar {
    position: relative;
    border: 1px solid #444444;
    background-color: white;
    height: 40px;
    overflow-x: hidden;
}

.ProgressBar .Activity {
    position: absolute;
    border: 4px solid white;
    left: 0;
    top: 0;
    bottom: 0;
    padding: 4px;

    font-size: 16px;
    text-align: left;
    vertical-align: middle;
    overflow-x: visible;
    white-space: nowrap;
}

.Activity.Success {
    background-color: #42aa6a;
}

.Activity.Failure {
    background-color: #E23B30;
}

.ProgressBar.Success {
    background-color: #42aa6a;
}

.ProgressBar.Failure {
    background-color: #E23B30;
}

.Version {
    position: fixed;
    bottom: 4px;
    right: 4px;
    font-size: 12px;
    color: #444444;
}

.Investigate {
    margin-left: 30px;
    font-size: 20px;
    font-style: italic;
    font-weight: bold;
}

.Build h3.FIXED {
    background: url('green-tick-small.png') no-repeat 0 -4px;
    padding-left: 50px;
    height: 32px;
    display: inline-block;
}

.Build h3.GIVEN_UP {
    background: url('red-cross-small.png') no-repeat 0 -2px;
    padding-left: 50px;
    height: 35px;
    display: inline-block;
}

.Build h3.TAKEN {
    background: url('viewmag.png') no-repeat 0 -2px;
    padding-left: 50px;
    height: 35px;
    display: inline-block;
}

.FeatureBranches {
    border: 1px solid #444444;
    background-color: #FFFFFF;
    padding: 8px;
}

.FeatureBranches h2 {
    margin: 0;
}

.FeatureBranches .Build {
    padding: 4px;
}

.FeatureBranchBuilds {
    display: table;
    table-layout: fixed;
    width: 100%;
    background-color: white;
}

.FeatureBranchBuild {
    position: relative;
    display: table-cell;
    border: 1px solid #444;
    height: 30px;
    overflow: hidden;
}

.FeatureBranchBuild .ProgressBar {
    position: absolute;
    height: 30px;
    border: 0;
}

.FeatureBranchBuildTypeName {
    position: absolute;
    line-height: 30px;
    margin-left: 4px
}



